// ChatterClient
// Receives XML-RPC messages from ChatterServer on the server

package edu.uci.ics.xmlrpc;

import org.apache.xmlrpc.webserver.XmlRpcServlet;

public class ChatterClient extends XmlRpcServlet
{	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// receive a message after it has been re-routed through the Server
	public String receiveMessageFrom(String userFrom, String message)
	{
		System.out.println("MESSAGE RECEIVED");
		System.out.println("From: " + userFrom);
		System.out.println("Text: " + message);
		System.out.println();
		
		return "true";
	}
}
